<?xml version="1.0" encoding="UTF-8" ?>
<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@taglib prefix="s" uri="/struts-tags"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>招聘信息列表</title>
</head>
<body>
	<table>
		<thead><tr><td>招聘职位</td><td>招聘人数</td><td>所在城市</td><td>要求外语</td><td>要求学历</td><td>要求工作经验</td><td>发布时间</td><td>详细信息</td></tr></thead>
		<tfoot>
			<tr>
			<td colspan="2">
				<c:if test="${!pagination.first}">
					<a href="browseRecruit.action?pagination.no=1">首页</a>
				</c:if>
			</td>
			<td colspan="2">
				<c:if test="${pagination.previous}">
					<a href="browseRecruit.action?pagination.no=${pagination.no-1}">上一页</a>
				</c:if>
			</td>
			<td colspan="2">
				<c:if test="${pagination.next}">
					<a href="browseRecruit.action?pagination.no=${pagination.no+1 }">下一页</a>
				</c:if>
			</td>
			<td>
				<c:if test="${!pagination.last}">
					<a href="browseRecruit.action?pagination.no=${pagination.pageSum }">尾页</a>
				</c:if>
			</td>
			</tr>
		</tfoot>
		<tbody>
			<s:iterator value="pagination.results"  status="stuts">
				<s:if test="#stuts.odd == true">
					<tr>
					<td><s:property value="recruitPosition" /></td>
					<td><s:property value="recruitCount" /></td>
					<td><s:property value="cityId.cityName" /></td>
					<td><s:property value="recruitForeiLanguage" /></td>
					<td><s:property value="statusId.statusName" /></td>
					<td><s:property value="recruitSeniority" /></td>
					<td><s:property value="recruitDate" /></td>
					<td><a href="/onjob/recruitDetail.action?id=${id}">查看</a></td>
					</tr>
				</s:if>
				<s:else>
					<tr>
					<td><s:property value="recruitPosition" /></td>
					<td><s:property value="recruitCount" /></td>
					<td><s:property value="cityId.cityName" /></td>
					<td><s:property value="recruitForeiLanguage" /></td>
					<td><s:property value="statusId.statusName" /></td>
					<td><s:property value="recruitSeniority" /></td>
					<td><s:property value="recruitDate" /></td>
					<td><a href="">查看</a></td>
					</tr>
				</s:else>
			</s:iterator>
			
		</tbody>
	</table>
	<s:form action="findByCityName" method="POST">
		<s:textfield name="cityName" label="按城市查询"></s:textfield>
		<s:submit value="查询"></s:submit>
	</s:form>
</body>
</html>